package com.kedi.usercenter.write.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.Map;

@Mapper
public interface WriteChildrensetMapper {
    /**
    * 方法实现说明 插入亲情电话
    * @author      ytw
    *@param
    * @return
    * @exception
    * @date        2019/8/2 16:26
    */
   @Insert(" insert  into  affection_phone (p_user_id,phone) values (#{p_user_id},#{phone})")
    Integer createaffectionphone(Map map);

    /**
     * 方法实现说明 插入药品提醒
     * @author      ytw
     *@param
     * @return
     * @exception
     * @date        2019/8/2 16:26
     */
    @Insert(" insert  into  mydrug (p_user_id,drug_name,startime,endtime,size,stage) values (#{p_user_id},#{drug_name},#{startime},#{endtime},#{size},#{stage})")
    Integer createmydrug(Map map);

    @Delete("delete from affection_phone where p_user_id=#{p_user_id}")
    Integer deleteaffectionphone(Map map);
}
